package com.wnxy.portal.common.result.impl;

import com.wnxy.portal.common.result.IResultCode;
import lombok.Getter;
// 枚举封装系统级别的状态码
@Getter
public enum ResultCodeEnum implements IResultCode {

    // 定义枚举对象
    SUCCESS(200,"操作成功"),
    FAIL(500,"操作失败");

    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
